package com.yidu.drug.dao;

import java.util.List;
import java.util.Map;

import com.yidu.drug.model.WholesaleModel;

public interface WholesaleModelMapper {
	int deleteByPrimaryKey(String pfId);

	int insert(WholesaleModel record);

	int insertSelective(WholesaleModel record);

	WholesaleModel selectByPrimaryKey(String pfId);

	int updateByPrimaryKeySelective(WholesaleModel record);

	int updateByPrimaryKey(WholesaleModel record);

	int findTotalRows(Map<String, String> map);

	List<WholesaleModel> findAllPage(Map<String,String> paramMap);

	List<WholesaleModel> findLoginRows(WholesaleModel t);
	List<WholesaleModel> findAlls(Map<String,String> paramMap);
	int findRows(Map<String, String> map);
	/**
	 * 批发退货财务审核
	 * @param map
	 * @return
	 */
	List<WholesaleModel> findAllPf(Map<String, String> map);
	/**
	 * 批发退货财务审核
	 * @param map
	 * @return
	 */
	int findRowPf(Map<String, String> map);
	
	/**
	 * 根据批发Id修改审核状态(重新审核)
	 * @param pfId
	 * @return
	 */
	int updateByPfId(String pfId);
	
	
}